<template>
  <div class="mine">
    <div data-v-11b11f53="" class="hander">
      <div data-v-11b11f53="" class="hander_content">
        <div data-v-11b11f53="" class="hander_info">
          <div data-v-11b11f53="" class="avitar">
            <img
              @click="$router.push('/userInfo')"
              data-v-11b11f53=""
              alt=""
              class="user_img"
              :src="userInfo.avatar"
            />
            <img
              data-v-11b11f53=""
              src="/assets/img/皇冠-2 拷贝@2x.ca9087bc.png"
              alt=""
              class="vip-logo"
            />
          </div>
          <div data-v-11b11f53="" class="phone">
            {{ userInfo.nickname }}
            <img
              data-v-11b11f53=""
              src=""
              alt=""
              class="xiugai"
            />
          </div>
          <div data-v-11b11f53="" class="right">去约课</div>
        </div>
        <div data-v-11b11f53="" class="hander_mine">
          <ul data-v-11b11f53="">
            <li data-v-11b11f53="">
              <p data-v-11b11f53="" class="count">0</p>
              <p data-v-11b11f53="" class="title">我的特色课</p>
              <p data-v-11b11f53="" class="xq">已购特色课程的.</p>
            </li>
            <li data-v-11b11f53="">
              <p data-v-11b11f53="" class="count">0</p>
              <p data-v-11b11f53="" class="title">一对一辅导</p>
              <p data-v-11b11f53="" class="xq">我的一对一老师.</p>
            </li>
            <li data-v-11b11f53="">
              <p data-v-11b11f53="" class="count">0.00</p>
              <p data-v-11b11f53="" class="title">剩余学习币</p>
              <p data-v-11b11f53="" class="xq">查看剩余学习币</p>
            </li>
          </ul>
        </div>
      </div>
    </div>

    <div data-v-11b11f53="" class="box">
      <div data-v-11b11f53="">
        <img
          data-v-11b11f53=""
          src=""
          alt=""
          class="box_img"
        />
      </div>
      <div data-v-11b11f53="" class="box_content">
        <p data-v-11b11f53="">邀请好友注册APP，享多重好礼</p>
        <p data-v-11b11f53="" class="content_ms">显示特惠，多邀多得</p>
      </div>
      <i data-v-11b11f53="" class="iconfont icon-danse_gengduojiantou"></i>
    </div>

    <div data-v-11b11f53="" class="menu_box">
      <ul data-v-11b11f53="">
        <li data-v-11b11f53="">
          <p data-v-11b11f53="" class="title">课程相关</p>
          <div data-v-11b11f53="" class="item-box">
            <div
              data-v-11b11f53=""
              class="item"
              @click="$router.push('/myStudy')"
            >
              <img
                data-v-11b11f53=""
                src=""
                class="icon-teacher"
              />
              <p data-v-11b11f53="">关注的老师</p>
            </div>
            <div
              data-v-11b11f53=""
              class="item"
              @click="$router.push('/collection')"
            >
              <img
                data-v-11b11f53=""
                src=""
                class="icon-collect"
              />
              <p data-v-11b11f53="">我的收藏</p>
            </div>
          </div>
        </li>
        <li data-v-11b11f53="">
          <p data-v-11b11f53="" class="title">订单相关</p>
          <div data-v-11b11f53="" class="item-box">
            <div data-v-11b11f53="" class="item">
              <img
                data-v-11b11f53=""
                src=""
                class="icon-order"
              />
              <p data-v-11b11f53="">课程订单</p>
            </div>
            <div data-v-11b11f53="" class="item">
              <img
                data-v-11b11f53=""
                src=""
                class="icon-order"
              />
              <p data-v-11b11f53="">会员订单</p>
            </div>
            <div data-v-11b11f53="" class="item">
              <img
                data-v-11b11f53=""
                src=""
                class="icon-order"
              />
              <p data-v-11b11f53="">约课订单</p>
            </div>
          </div>
        </li>
        <li data-v-11b11f53="">
          <p data-v-11b11f53="" class="title">我的账户</p>
          <div data-v-11b11f53="" class="item-box">
            <div data-v-11b11f53="" class="item">
              <img
                data-v-11b11f53=""
                src=""
                class="icon-coupon"
              />
              <p data-v-11b11f53="">优惠券</p>
              <span data-v-11b11f53=""></span>
            </div>
            <div data-v-11b11f53="" class="item">
              <img
                data-v-11b11f53=""
                src=""
                class="icon-card"
              />
              <p data-v-11b11f53="">学习卡</p>
            </div>
            <div data-v-11b11f53="" class="item">
              <img
                data-v-11b11f53=""
                src=""
                class="icon-vip"
              />
              <p data-v-11b11f53="">会员</p>
            </div>
          </div>
        </li>
        <li data-v-11b11f53="">
          <p data-v-11b11f53="" class="title">自助服务</p>
          <div data-v-11b11f53="" class="item-box">
            <div data-v-11b11f53="" class="item">
              <img
                data-v-11b11f53=""
                src=""
                class="icon-news"
              />
              <p data-v-11b11f53="">我的消息</p>
              <span data-v-11b11f53=""></span>
            </div>
            <div data-v-11b11f53="" class="item">
              <img
                data-v-11b11f53=""
                src=""
                class="icon-mail"
              />
              <p data-v-11b11f53="">意见反馈</p>
            </div>
            <div data-v-11b11f53="" class="item">
              <img
                data-v-11b11f53=""
                src=""
                class="icon-custom"
              />
              <p data-v-11b11f53="">在线客服</p>
            </div>
            <div
              data-v-11b11f53=""
              class="item"
              @click="$router.push('/options')"
            >
              <img
                data-v-11b11f53=""
                src=""
                class="icon-custom"
              />
              <p data-v-11b11f53="">设置</p>
            </div>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import { userInfo } from "../request/http";
export default {
  data() {
    return {
      userInfo: {},
    };
  },
  created() {
    userInfo().then((res) => {
      console.log(res);
      this.userInfo = res;
      console.log(this.userInfo );
    });
  },
};
</script>


<style lang="scss" scoped>
.hander {
  width: 100%;
  height: 5.813rem;
  background: url(http://xl.9yuecloud.com/assets/img/user_bg.ab306a5c.png)
    no-repeat top;
  background-size: 100%;
  position: relative;
}

.hander .hander_content {
  position: absolute;
  width: 90%;
  height: 5.613rem;
  background: #fff;
  left: 0.48rem;
  top: 1.2rem;
  border-radius: 0.133rem;
}

.hander .hander_content .hander_info {
  width: 95%;
  height: 1.867rem;
  padding-top: 0.267rem;
  margin-left: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hander .hander_content .hander_info .avitar {
  width: 1.333rem;
  height: 1.333rem;
  border: 1px solid #777;
  border-radius: 100%;
  overflow: hidden;
}

.hander .hander_content .hander_info .avitar .user_img {
  width: 100%;
  height: 100%;
}

.hander .hander_content .hander_info .vip-logo {
  position: absolute;
  left: 1.467rem;
  right: 0;
  top: 0.293rem;
  width: 0.533rem;
  height: 0.533rem;
}

.hander .hander_content .hander_info .phone {
  width: 75%;
  float: left;
  font-size: 0.453rem;
}

.hander .hander_content .hander_info .phone .xiugai {
  width: 0.4rem;
  height: 0.4rem;
}

.hander .hander_content .hander_info .right {
  position: absolute;
  right: 0;
  width: 1.467rem;
  height: 0.667rem;
  background: #eb6100;
  color: #fff;
  text-align: center;
  line-height: 0.667rem;
  border-top-left-radius: 0.213rem;
  border-bottom-left-radius: 0.213rem;
}

.hander .hander_content .hander_mine {
  height: 2.133rem;
  width: 90%;
  margin: 0 auto;
}

.hander .hander_content .hander_mine ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hander .hander_content .hander_mine ul li {
  border: 1px solid #f1f1f1;
  width: 32%;
  height: 100%;
  text-align: center;
}

.hander .hander_content .hander_mine ul li .count {
  color: #eb6100;
  font-size: 0.507rem;
}

.hander .hander_content .hander_mine ul li .title {
  font-size: 0.4rem;
}

.hander .hander_content .hander_mine ul li .xq {
  line-height: 0.4rem;
  font-size: 0.32rem;
  color: #777;
  overflow: hidden;
  text-overflow: ellipsis;
}

.box {
  width: 90%;
  height: 1.173rem;
  margin: 60px auto 10px;
  background: url()
    no-repeat;
  background-size: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.box .box_img {
  width: 0.533rem;
  height: 0.533rem;
  margin-left: 0.533rem;
}

.box .box_content {
  text-align: left;
  color: #fff;
  width: 70%;
}

.box .box_content p {
  line-height: 0.133rem;
}

.box .box_content .content_ms {
  font-size: 0.293rem;
}

.box .iconfont {
  margin-right: 0.533rem;
  color: #fff;
  font-size: 0.533rem;
}

.box .box_content .content_ms {
  font-size: 0.293rem;
  margin-top: 20px;
}

.box .box_content p {
  line-height: 0.133rem;
}

.box .iconfont {
  margin-right: 0.533rem;
  color: #fff;
  font-size: 0.533rem;
}

.menu_box {
  width: 90%;
  margin: 0 auto;
  padding-bottom: 1.333rem;
}

.menu_box li {
  border-bottom: 1px solid #eee;
  margin-top: 10px;
}

.menu_box li .title {
  font-family: PingFangSC-Medium;
  font-size: 0.427rem;
  color: #333;
  line-height: 0.267rem;
}

.menu_box li .item-box {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.menu_box li .item-box .item {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  align-items: center;
  flex-direction: column;
  width: 25%;
  height: 1.6rem;
  text-align: center;
  padding-bottom: 0.533rem;
}

.menu_box li .item-box .item img {
  width: 0.533rem;
  height: 0.533rem;
  display: inline-block;
}

.menu_box li .item-box .item p {
  margin-top: 0.533rem;
  font-size: 0.347rem;
  color: #666;
  line-height: 1px;
}
</style>